let debounce = (fn, delay) => {
    let timer = null
    //fn 业务函数
    return function () {
        clearTimeout(timer)
        timer = setTimeout(() => {
            fn()
        }, delay);
    }

}

export default debounce